package com.code.modules.base.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.code.modules.base.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author MyBatisPlus
 * @since 2021-10-19
 */
public interface UserMapper extends BaseMapper<User> {

    User getUserByusername(@Param("username") String username);

    List<User> selectPageList(@Param("condition") String condition);

    int changePwd(@Param("uid") Integer uid, @Param("pwd") String pwd , @Param("salt") String salt);

    int setAatar(@Param("uid") Integer uid, @Param("avatarurl") String avatarurl);

}
